import request from '@/utils/request'

// 查询策略命中记录列表
export function listRuleHit(query) {
    return request({
        url: '/business/RuleHit/list',
        method: 'get',
        params: query
    })
}

// 查询策略命中记录详细
export function getRuleHit(id) {
    return request({
        url: '/business/RuleHit/' + id,
        method: 'get'
    })
}

// 新增策略命中记录
export function addRuleHit(data) {
    return request({
        url: '/business/RuleHit',
        method: 'post',
        data: data
    })
}

// 修改策略命中记录
export function updateRuleHit(data) {
    return request({
        url: '/business/RuleHit',
        method: 'put',
        data: data
    })
}

// 删除策略命中记录
export function delRuleHit(id) {
    return request({
        url: '/business/RuleHit/' + id,
        method: 'delete'
    })
}

// 导出策略命中记录
export function exportRuleHit(query) {
    return request({
        url: '/business/RuleHit/export',
        method: 'get',
        params: query
    })
}